<div class="form">

	<?php
	$form = $this->beginWidget('CActiveForm',
		array(
		'id'=>'printing-form',
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
		'enableAjaxValidation'=>false,
		));
	?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model);?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'province');
		echo $form->textField($model, 'province', array('size'=>60, 'maxlength'=>255));
		echo $form->error($model, 'province');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'sector');
		echo $form->textField($model, 'sector', array('size'=>60, 'maxlength'=>255));
		echo $form->error($model, 'sector');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'note');
		echo $form->textArea($model, 'note', array('rows'=>6, 'cols'=>50));
		echo $form->error($model, 'note');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'status');
		$data = array(
			Printing::STATUS_RECEIVED=>Printing::STATUS_RECEIVED,
			Printing::STATUS_VALID=>Printing::STATUS_VALID,
			Printing::STATUS_INVALID=>Printing::STATUS_INVALID,
			Printing::STATUS_PROCESSING=>Printing::STATUS_PROCESSING,
			Printing::STATUS_PRINTING=>Printing::STATUS_PRINTING,
			Printing::STATUS_FINISHED=>Printing::STATUS_FINISHED,
			Printing::STATUS_SENT=>Printing::STATUS_SENT,
		);
		echo $form->radioButtonList($model, 'status', $data);
		echo $form->error($model, 'status');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'file');
		echo $form->fileField($model, 'file');
		echo $form->error($model, 'file');
		?>
	</div>

	<div class="row buttons">
		<?php
		echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
		?>
	</div>

	<?php $this->endWidget();?>

</div><!-- form -->